		//创建服务
    	app.service("brandService",function($http){
    		
    		//分页查询所有+模糊查询
    		this.findPageAll=function(pageNum,pageSize,findLike){
    			return $http.post('../brand/findPageAll.do?pageNum='+pageNum+'&pageSize='+pageSize,findLike)
    		}
    		
    		//添加品牌信息
    		this.addBrand=function(saveBrand){
    			return $http.post("../brand/addBrand.do",saveBrand);
    		}
    		
    		//修改品牌信息
    		this.updateBrand=function(saveBrand){
    			return $http.post("../brand/updateBrand.do",saveBrand);
    			
    		}
    		
    		//根据ID查询品牌信息
    		this.findByBrandId=function(id){
    			return $http.get("../brand/findByBrandId.do?id="+id)
    		}
    		
    		//根据ID删除品牌信息
    		this.deleteBrand=function(ids){
    			return $http.post("../brand/deleteBrand.do",ids)
    		}
    		
    		
    	});